<%@page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>某某网络管理系统V0.1-- 用户登录</title>
<%@ include file="./common/taglibs.jsp"%>
<%@ include file="./common/meta.jsp"%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/easyui/themes/bootstrap/easyui.css"/>  
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/easyui/themes/icon.css"/>  
<script>
	if (self != top) {
	    window.open(self.location, '_top');
	}
</script>
<c:if test="${param.error == true}">
	<script>
		alert('${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}');
	</script>
</c:if>
<script type="text/javascript">

$(function(){
	$("#loginBtn").bind("click", function(){
		$('#loginForm').submit();	
	});
	$("#cancelBtn").bind("click", function(){
		$('#loginForm').reset();
	});
	$("#settingBtn").bind("click", function(){		
		$('#settingDlg').dialog('open');
	});
	
	$("input[name='name']").focus();
});
</script>
<style type="text/css">
#leftbar {
	width:300px;
	float:left;
}
#rightbar {
	width:300px;
	float:right;
}
#buttonpanel {
	text-align:right;
	padding:0 5px;
}
#buttonpanel a {
	margin:0 3px;
}
#loginpanel {
	margin:0 auto;
	width:260px;
	text-align:left;
}
#tip {
	font-weight:bold;
	color:red;
	height:32px;
	line-height:32px;
	width:20px;
}
</style>
</head>
<body class="easyui-layout">
<div data-options="region:'north',border:false" style="height:100px;background:#D8E0F3;padding:0 10px;">
</div>
<div data-options="region:'center',border:false" style="text-align:center;height:100%;background:#efefef">
<table style="width:100%;height:100%">
<tr valign="middle">
<td align="center">
	<div class="easyui-panel" title="某某网络管理系统V0.1-- 用户登录"
		style="width:365px;height:200px;padding:5px;">
	<form id="loginForm" action="./j_spring_security_check" method="post">	
	<div><span id="tip">请输入登录名和密码,为方便下次登录,你可以选择[记住密码]</span></div>	

	<div id="loginpanel">
	<table>
	<tr>
	<td nowrap="nowrap">登录名:</td>
	<td><input type="text" name="j_username" value="" size="20" maxlength="60" class="easyui-validateBox"/></td>
	</tr>
	<tr>
	<td>密码:</td>
	<td nowrap="nowrap"><input type="password" name="j_password" value="" size="20" maxlength="8"/><a href="#" style="text-decoration:underline">忘记密码了?</a></td>
	</tr>
	<tr>
	<td></td>
	<td>
		<div>
		<input type="checkbox" name="rememberPwd"/>记住密码
		</div>
	</td>
	</tr>
	</table>
	</div>

	<div id="buttonpanel">
	<a href="#" id="loginBtn" class="easyui-linkbutton">登录</a>
	<a href="#" id="cancelBtn" class="easyui-linkbutton">取消</a>
	</div>
	</form>	
	</div>

</td>
</tr>
</table>	
</div>
<div data-options="region:'south',border:false" style="height:100px;background:#D8E0F3;padding:0 10px;">
</div>
</body>
</html>